package com.mofang.ticketing.user.mapping.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 项目用户表
 *
 * @TableName project_user
 */
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "project_user")
@Data
public class ProjectUserDO implements Serializable {
    /**
     * id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 项目ID
     */
    @TableField(value = "project_id")
    private Long projectId;

    /**
     * 商户ID
     */
    @TableField(value = "merchant_id")
    private Long merchantId;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public ProjectUserDO(Long projectId, Long merchantId, Long userId, Date createTime) {
        this.projectId = projectId;
        this.merchantId = merchantId;
        this.userId = userId;
        this.createTime = createTime;
    }
}